<!-- 搜索modal1 -->
<div class="modal-dialog modal-lg">
  <div class="modal-content">
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-label="Close">
        <span aria-hidden="true">&times;</span>
      </button>
      <h4 class="modal-title">搜索条件</h4>
    </div>

    <div class="box-body" style="display:block">
      <form class="form-horizontal">
        <div class="form-group">
          <label class="col-lg-2 text-right">是否有效：</label>
          <div class="col-lg-3">
            <select class="form-control" name="sValid" [(ngModel)]="getBody.sValid">
              <option [value]="''">全部</option>
              <option [value]="1">有效</option>
              <option [value]="0">无效</option>
            </select>
          </div>
          <!-- <div class="col-lg-3">
            <input class="form-control form-fields" type="text" maxlength="20" name="sValid" [(ngModel)]="getBody.sValid">
          </div> -->
          <div class="col-lg-1"></div>
          <label class="col-lg-2 text-right">基金代码：</label>
          <div class="col-lg-3">
            <!-- <input class="form-control form-fields" type="text" maxlength="25" name="sFundGroupdsZh" [(ngModel)]="sFundGroupdsZh"> -->
            <div class="input-group">
              <input class="form-control" placeholder="基金代码" maxlength="2000" [(ngModel)]="sFundGroupdsZh" name="sFundGroupdsZh">
              <div class="input-group-addon" (click)="showApplyQDIIFundCode()">
                <i class="fa fa-search"></i>
              </div>
            </div>
          </div>
        </div>

        <div class="form-group">
          <label class="col-lg-2 text-right">适用基金类别：</label>
          <div class="col-lg-3">
            <select class="form-control" [(ngModel)]="getBody.sFundType" name="sFundType">
              <option [value]="''">请选择</option>
              <option [value]="item.sItemKey" *ngFor="let item of dictionary.QD_ACCOUNT_TYPE">{{item.sItemValue}}</option>
            </select>
          </div>
          <!-- <div class="col-lg-3">
            <input class="form-control form-fields" type="text" maxlength="20" name="sFundType" [(ngModel)]="getBody.sFundType">
          </div> -->
          <div class="col-lg-1"></div>
          <label class="col-lg-2 text-right">适用基金组：</label>
          <div class="col-lg-3">
            <select class="form-control" [(ngModel)]="groupKey" name="groupKey">
              <option [value]="''">请选择</option>
              <option [value]="item.nFgId" *ngFor="let item of groupList">{{item.sFgName}}</option>
            </select>
          </div>
        </div>

        <div class="form-group">
          <label class="col-lg-2 text-right">风控条目属性：</label>
          <div class="col-lg-3">
            <select class="form-control" [(ngModel)]="getBody.sItemType" name="sItemType">
              <option [value]="''">请选择</option>
              <option [value]="item.sItemKey" *ngFor="let item of dictionary.QDII_RECORD_TYPE">{{item.sItemValue}}</option>
            </select>
          </div>
          <!-- <div class="col-lg-3">
            <input class="form-control form-fields" type="text" maxlength="20" name="sItemType" [(ngModel)]="getBody.sItemType">
          </div> -->
          <div class="col-lg-1"></div>
          <label class="col-lg-2 text-right">风控条目编号：</label>
          <div class="col-lg-3">
            <input class="form-control form-fields" type="text" maxlength="9" name="nQdId" [(ngModel)]="getBody.nQdId" (ngModelChange)="integerControl()">
          </div>
        </div>

        <div class="form-group">
          <label class="col-lg-2 text-right">文件名称：</label>
          <div class="col-lg-3">
            <input class="form-control form-fields" type="text" maxlength="100" name="sFileName" [(ngModel)]="getBody.sFileName">
          </div>
          <div class="col-lg-1"></div>
          <label class="col-lg-2 text-right">条款出处：</label>
          <div class="col-lg-3">
            <input class="form-control form-fields" type="text" maxlength="2000" name="sFileSource" [(ngModel)]="getBody.sFileSource">
          </div>
        </div>

        <div class="form-group">
          <label class="col-lg-2 text-right">内容：</label>
          <div class="col-lg-3">
            <input class="form-control form-fields" type="text" maxlength="2000" name="f1" [(ngModel)]="getBody.f1">
          </div>
          <div class="col-lg-1"></div>
          <label class="col-lg-2 text-right">指标释义：</label>
          <div class="col-lg-3">
            <input class="form-control form-fields" type="text" maxlength="2000" name="f3" [(ngModel)]="getBody.f3">
          </div>
        </div>

        <div class="form-group">
          <label class="col-lg-2 text-right">bloomberg系统能否控制：</label>
          <div class="col-lg-3">
            <select class="form-control" [(ngModel)]="getBody.f4" name="f4">
              <option [value]="''" selected="selected">请选择</option>
              <option [value]="item.sItemKey" *ngFor="let item of dictionary.RISK_BOOLMBERG_CONTROL">{{item.sItemValue}}</option>
            </select>
          </div>
          <!-- <div class="col-lg-3">
            <input class="form-control form-fields" type="text" maxlength="20" name="F4" [(ngModel)]="getBody.F4">
          </div> -->
          <div class="col-lg-1"></div>
          <label class="col-lg-2 text-right">系统设置代码：</label>
          <div class="col-lg-3">
            <input class="form-control form-fields" type="text" maxlength="2000" name="f5" [(ngModel)]="getBody.f5">
          </div>
        </div>

        <div class="form-group">
          <label class="col-lg-2 text-right">阀值：</label>
          <div class="col-lg-3">
            <input class="form-control form-fields" type="text" maxlength="2000" name="f6" [(ngModel)]="getBody.f6">
          </div>
          <div class="col-lg-1"></div>
          <label class="col-lg-2 text-right">人工控制方法说明：</label>
          <div class="col-lg-3">
            <input class="form-control form-fields" type="text" maxlength="2000" name="f7" [(ngModel)]="getBody.f7">
          </div>
        </div>

        <div class="form-group">
          <label class="col-lg-2 text-right">系统实施相关条件：</label>
          <div class="col-lg-3">
            <input class="form-control form-fields" type="text" maxlength="2000" name="f8" [(ngModel)]="getBody.f8">
          </div>
          <div class="col-lg-1"></div>
          <label class="col-lg-2 text-right">备注1：</label>
          <div class="col-lg-3">
            <input class="form-control form-fields" type="text" maxlength="2000" name="f9" [(ngModel)]="getBody.f9">
          </div>
        </div>

        <div class="form-group">
          <label class="col-lg-2 text-right">备注2：</label>
          <div class="col-lg-3">
            <input class="form-control form-fields" type="text" maxlength="2000" name="f10" [(ngModel)]="getBody.f10">
          </div>
        </div>

      </form>
    </div>

    <div class="modal-footer">
      <button type="button" class="btn btn-default pull-left" data-dismiss="modal">退出</button>
      <button type="button" class="btn btn-primary" (click)="searchBody()">
        <i class="fa fa-search"></i>查询</button>
    </div>
  </div>
</div>

<!-- 基金代码modal -->
<div class="modal modal-detail" id="applyQDIIFundCode">
  <div #applyQDIIFundCode></div>
</div>